﻿namespace AnyOffice.Model
{
    using System;

    public class ProjectTaskData
    {
        protected object _attachmentId;
        protected object _code;
        protected int _completedPercent;
        protected DateTime _createDate = DateTime.Now;
        protected string _creator = string.Empty;
        protected object _description;
        protected object _endDate;
        protected object _hours;
        protected string _name = string.Empty;
        protected int _priority = 1;
        protected object _projectId;
        protected object _startDate;
        protected int _status;
        protected int _taskId = -1;
        protected object _taskUsers;
        protected object _taskViewers;

        public string AttachmentId
        {
            get
            {
                return (string) this._attachmentId;
            }
            set
            {
                this._attachmentId = value;
            }
        }

        public bool AttachmentIdIsNull
        {
            get
            {
                return (this._attachmentId == null);
            }
            set
            {
                if (value)
                {
                    this._attachmentId = null;
                }
            }
        }

        public string Code
        {
            get
            {
                return (string) this._code;
            }
            set
            {
                this._code = value;
            }
        }

        public bool CodeIsNull
        {
            get
            {
                return (this._code == null);
            }
            set
            {
                if (value)
                {
                    this._code = null;
                }
            }
        }

        public int CompletedPercent
        {
            get
            {
                return this._completedPercent;
            }
            set
            {
                this._completedPercent = value;
            }
        }

        public DateTime CreateDate
        {
            get
            {
                return this._createDate;
            }
            set
            {
                this._createDate = value;
            }
        }

        public string Creator
        {
            get
            {
                return this._creator;
            }
            set
            {
                this._creator = value;
            }
        }

        public string Description
        {
            get
            {
                return (string) this._description;
            }
            set
            {
                this._description = value;
            }
        }

        public bool DescriptionIsNull
        {
            get
            {
                return (this._description == null);
            }
            set
            {
                if (value)
                {
                    this._description = null;
                }
            }
        }

        public DateTime EndDate
        {
            get
            {
                return (DateTime) this._endDate;
            }
            set
            {
                this._endDate = value;
            }
        }

        public bool EndDateIsNull
        {
            get
            {
                return (this._endDate == null);
            }
            set
            {
                if (value)
                {
                    this._endDate = null;
                }
            }
        }

        public int Hours
        {
            get
            {
                return (int) this._hours;
            }
            set
            {
                this._hours = value;
            }
        }

        public bool HoursIsNull
        {
            get
            {
                return (this._hours == null);
            }
            set
            {
                if (value)
                {
                    this._hours = null;
                }
            }
        }

        public string Name
        {
            get
            {
                return this._name;
            }
            set
            {
                this._name = value;
            }
        }

        public int Priority
        {
            get
            {
                return this._priority;
            }
            set
            {
                this._priority = value;
            }
        }

        public int ProjectId
        {
            get
            {
                return (int) this._projectId;
            }
            set
            {
                this._projectId = value;
            }
        }

        public bool ProjectIdIsNull
        {
            get
            {
                return (this._projectId == null);
            }
            set
            {
                if (value)
                {
                    this._projectId = null;
                }
            }
        }

        public DateTime StartDate
        {
            get
            {
                return (DateTime) this._startDate;
            }
            set
            {
                this._startDate = value;
            }
        }

        public bool StartDateIsNull
        {
            get
            {
                return (this._startDate == null);
            }
            set
            {
                if (value)
                {
                    this._startDate = null;
                }
            }
        }

        public int Status
        {
            get
            {
                return this._status;
            }
            set
            {
                this._status = value;
            }
        }

        public int TaskId
        {
            get
            {
                return this._taskId;
            }
            set
            {
                this._taskId = value;
            }
        }

        public string TaskUsers
        {
            get
            {
                return (string) this._taskUsers;
            }
            set
            {
                this._taskUsers = value;
            }
        }

        public bool TaskUsersIsNull
        {
            get
            {
                return (this._taskUsers == null);
            }
            set
            {
                if (value)
                {
                    this._taskUsers = null;
                }
            }
        }

        public string TaskViewers
        {
            get
            {
                return (string) this._taskViewers;
            }
            set
            {
                this._taskViewers = value;
            }
        }

        public bool TaskViewersIsNull
        {
            get
            {
                return (this._taskViewers == null);
            }
            set
            {
                if (value)
                {
                    this._taskViewers = null;
                }
            }
        }
    }
}

